<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>组件</title>
	</head>
	<body>
		<div id="app">
			<hello></hello>
		</div>
		<script src="../js/vue.js"></script>
		<script>
			Vue.component('hello',{
				data(){
					return {
						msg:'hello 组件'
					}
				},
				template: '<h1>{{msg}}</h1>'
					
			})
			
			const app=new Vue({
				el:"#app"
			})
		</script>
	</body>
</html>
